/* 生成openApi文档 */
const swaggerJsdoc = require("swagger-jsdoc");
const options = {
  failOnErrors: true,
  definition: {
    openapi: "3.0.0",
    info: {
      title: "Hello World",
      version: "1.0.0",
    },
  },
  apis: ["./routes/**/*.js"],
};

module.exports = ()=> swaggerJsdoc(options)